const send = (res, data) => {
  res.setHeader('Content-Type', 'application/json');
  res.end(JSON.stringify(data));
};

export default {
  'GET /mock/queryList': (req, res) => {
    send(res, {
      code: 200,
      data: {
        list: new Array(10).fill(0).map((_, index) => ({
          key: index,
          name: '胡彦斌',
          age: 32,
          address: '西湖区湖底公园1号',
        })),
        total: 100,
      },
    });
  },
};
